import { DataTypes , Model } from "sequelize";
import { sequelize } from "../Component/DB/sequelize.js";

class StudentDb extends Model {}

StudentDb.init({
  stuName : {
    type : DataTypes.STRING,
    allowNull : false
  },
  stuAge : {
    type : DataTypes.INTEGER,
    allowNull : false
  },
  stuClass : {
    type : DataTypes.STRING,
    allowNull : false
  }
},{sequelize,modelName : 'StudentDb'}
)

export default StudentDb